// let start = "zzl";
// let start = "zz2";
// {
//     let start = "stt";
// }
// console.log(start);
// console.log(name);

// const a = 1;
// // const a = 2;
// a = 2;

const Look = function(){
    

};

// console.log(look().name);


const nameS = ['a','b','c'];
let [n1,n2,n3] = nameS;
console.log(n2);


const data = {
    name:'zhangsna1a',
    age:18,
    active:function(){
        console.log("i can fly");
        
    }
}

// let {name,age,active}=data;
// console.log(name);

// active();
let {active} = data;
active();

//模板字符串
let str = "字符串";
let showName = 'sql';
let result = `${showName}是个人`;
console.log(result);

console.log('-------------------------------------');

let mName = 'zyy';
let fun=function(){
    console.log('i am people');
    
}

const obj = {
    mName,
    fun,
    act(){
        console.log('i can play');
        
    }
}
console.log(obj);


let fn = function(a,b){

}

let fn2=(a,b)=>{
    console.log(a+b);
    
}
fn2(1,2);